export const option={
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'line',//line,shadow
            label: {
                show: false
            },
            lineStyle:{
                color:'red'
            }
        }
    },
    legend: {
        data: ['Tensile_Strength', 'Yield_Strength']
    },
    toolbox: {
        show: true,
        feature: {
            magicType: { show: true, type: ['line', 'bar'] }
        }
    },
    calculable: true,
    grid:{
        left:'11%'
    },
    xAxis: [
        {
            type: 'category',
            data: []
        }
    ],
    yAxis: [
        {
            type: 'value'
        }
    ],
    dataZoom: [{
        show:'true'
    },
        {
        type: 'inside',
    }],
    series: [
        {
            name: 'Tensile_Strength',
            type: 'bar',
            data: [],
            color:"rgb(150,150,150)",
            markPoint: {
                data: [
                    { type: 'max', name: 'Max' },
                    { type: 'min', name: 'Min' }
                ]
            },
            markLine: {
                data: [{ type: 'average', name: 'Avg' }]
            }
        },
        {
            name: 'Yield_Strength',
            type: 'bar',
            data: [],
            color: "rgb(116,169,207)",
            markPoint: {
                data: [
                    { type: 'max', name: 'Max' },
                    { type: 'min', name: 'Min' }
                ]
            },
            markLine: {
                data: [{ type: 'average', name: 'Avg' }]
            }
        }
    ]
};

